const getters = { 
	sidebar: state => state.app.sidebar,
	size: state => state.app.size,
	device: state => state.app.device,
	tagsView: state => state.settings.tagsView,
	visitedViews: state => state.tagsView.visitedViews,
	cachedViews: state => state.tagsView.cachedViews,
	token: state => state.user.token,
	company: state => state.company.company_info,
	avatar: state => state.user.avatar,
	name: state => state.user.name,
	username: state => state.user.username,
	mobile: state => state.user.mobile,
	email: state => state.user.email,
	roles: state => state.user.roles,
	rights: state => state.user.rights,
	btnRights: state => state.user.btnRights,
	permission_routes: state => state.permission.routes,
	catchList: state => state.keep.catchList,
	isRouterAlive: state => state.app.isRouterAlive,
	curDepartment: state => state.company.curDepartment,
	departmentList: state => state.company.departmentList,
	flowObj: state => state.flow.flow_obj,
	getFlowTypeRouter: state => (flow_type) => {
		return ((state.flow.flow_obj||{})[''+flow_type]||{}).router || '_404';
	},
	pageParamsMap: state => state.keep.pageParamsMap
}
export default getters
